package com.lxd.property.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lxd.property.dao.InvoiceunitMapper;
import com.lxd.property.pojo.Invoiceunit;
import com.lxd.property.service.InvoiceunitService;
@Service("invoiceunitService")
@Transactional
public class InvoiceunitServiceImpl implements InvoiceunitService{

	
	@Autowired
	private InvoiceunitMapper invoiceunitMapper;

	@Override
	public List<Invoiceunit> findAllInvoiceunit(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return invoiceunitMapper.findAllInvoiceunit(map);
	}

	@Override
	public Long findAllInvoiceunitCount(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return invoiceunitMapper.findAllInvoiceunitCount(map);
	}

	@Override
	public Invoiceunit findInvoiceunitById(Integer id) {
		// TODO Auto-generated method stub
		return invoiceunitMapper.findInvoiceunitById(id);
	}

	@Override
	public Invoiceunit judgeRepeation(Invoiceunit invoiceunit) {
		// TODO Auto-generated method stub
		return invoiceunitMapper.judgeRepeation(invoiceunit);
	}

	@Override
	public Integer updateInvoiceunit(Invoiceunit invoiceunit) {
		// TODO Auto-generated method stub
		return invoiceunitMapper.updateInvoiceunit(invoiceunit);
	}

	@Override
	public Integer addInvoiceunit(Invoiceunit invoiceunit) {
		// TODO Auto-generated method stub
		return invoiceunitMapper.addInvoiceunit(invoiceunit);
	}

	@Override
	public Integer disableInvoiceunit(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return invoiceunitMapper.disableInvoiceunit(map);
	}

	
	

}
